package com.library.Mapper;

import com.library.pojo.Admin;
import com.library.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LoginMapper {
    @Select("select * from admin where user_name = #{username}")
    Admin loginForAdmin(@Param("username")String username);

    @Select("select * from user where user_name = #{userName}")
    User getUser(@Param("userName")String userName);
}
